package com.eastfair.pay.dto;

import com.eastfair.core.base.entity.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 付款计划
 * </p>
 *
 * @author clm
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "PaymentPlanUpdateDTO", description = "付款计划")
public class PaymentPlanUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 业务合同id
     */
    @ApiModelProperty(value = "业务合同id")
    private Long businessId;
    /**
     * 系统code
     */
    @ApiModelProperty(value = "系统code")
    @Size(max = 20, message = "系统code长度不能超过20")
    private String systemCode;
    /**
     * 计划付款时间
     */
    @ApiModelProperty(value = "计划付款时间")
    private LocalDateTime planPayTime;
    /**
     * 计划付款百分比(百分比*100)
     */
    @ApiModelProperty(value = "计划付款百分比(百分比*100)")
    private String percent;
    /**
     * 计划回款金额
     */
    @ApiModelProperty(value = "计划回款金额")
    private BigDecimal planPayAmount;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    private Long exhibitionId;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 已付金额
     */
    @ApiModelProperty(value = "已付金额")
    private BigDecimal payedAmount;
    /**
     * 付款状态
     */
    @ApiModelProperty(value = "付款状态")
    private String payState;
    /**
     * 分期期数(第一期)
     */
    @ApiModelProperty(value = "分期期数(第一期)")
    @Size(max = 255, message = "分期期数(第一期)长度不能超过255")
    private String stagesTag;
}
